home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / gymake12.zip / MAKEFILE < prev    next >
Text File  |  1988-11-18  |  1KB  |  57 lines

  1. # name of this program
  2. NAME    = make
  3.  
  4. # DOS uses a .exe extension, Unix does not
  5. #EXE    =
  6. EXE    = .exe
  7.  
  8. # define the FLAGS as required for MSDOS or Unix
  9. #CFLAGS    = -O
  10. CFLAGS    = /Oals /Gs
  11. #LDFLAGS    =
  12. LDFLAGS = /link /cparmaxalloc:1 /noe /stack:2000
  13.  
  14. OBJS    = make.o parse.o tstring.o
  15. PROG    = $(NAME)$(EXE)
  16.  
  17. # define your installation directory
  18. #BIN    = /z/greggy/bin
  19. BIN    = c:/bin
  20.  
  21. # archive utility
  22. #ARCADD    = arc a
  23. ARCADD    = pkarc a
  24.  
  25. # files to archive
  26. ARCS    = decl.h make.h tstring.h make.c parse.c tstring.c \
  27.       default.mk makefile make.doc README $(PROG)
  28.  
  29. all:    $(PROG)
  30.  
  31. $(PROG):    $(OBJS)
  32.     $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LDFLAGS)
  33.  
  34. arc:    $(NAME).arc
  35.  
  36. $(NAME).arc:    $(ARCS)
  37.     $(RM) $(NAME).arc
  38.     $(ARCADD) $(NAME).arc $(ARCS)
  39.  
  40. install:    $(BIN)/$(PROG) $(BIN)/default.mk
  41. $(BIN)/$(PROG):    $(PROG)
  42.     cp $(PROG) $(BIN)/$(PROG)
  43. $(BIN)/default.mk: default.mk
  44.     cp default.mk $(BIN)/default.mk
  45.  
  46. clean:
  47.     $(RM) *.o *.bak
  48.  
  49. # use this to check the size of the program (use chkdsk if necessary)
  50. size:
  51.     pmap
  52.  
  53. # and of course, the object file dependencies
  54. make.o:        make.h tstring.h
  55. parse.o:    make.h tstring.h
  56. tstring.o:    tstring.h
  57.